/**
 * 2025/01/01 - 2025/12/31
 */
package com.snail.server.iam.resource.vo;

import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @author zgadmin
 * @date 2025/9/26 19:18
 */
@Data
@ToString
public class AppResourceVO {

    private Long appId;

    private List<ResourceVO> children;

    public static AppResourceVO of(Long appId, List<ResourceVO> children) {
        AppResourceVO appResource = new AppResourceVO();
        appResource.setAppId(appId);
        appResource.setChildren(children);
        return appResource;
    }

}
